package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class SignStore extends BaseDomain{

    private String productTitle; //商品标题

    private String productPrice; //商品价格

    private Integer productSign; //商品积分

    private String productUrl; //商品图片

    private User user; //用户

    //获取json数据
    public String getJson() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("productTitle", productTitle);
        map.put("productPrice", productPrice);
        map.put("productSign", productSign);
        map.put("productUrl", productUrl);
        return JSONUtil.toJSONString(map);
    }
}